home *** CD-ROM | disk | FTP | other *** search
- case $CONFIG in
- '') . config.sh ;;
- esac
- outputfile=ryork21.cf
- rm -f $outputfile.$$
- echo "Creating $outputfile (with variable substitutions)"
- if cat >$outputfile.$$ <<!GROK!THIS!
- # RCSid[] = "@(#)$Header: ryork21.SH,v 3.1 86/12/24 10:44:04 pb Rel $"
- #
- ##################################################
- ##################################################
- ##############
- ############## configure for york directory (old D2.1 format)
- ##############
- ##################################################
- ##################################################
-
- # the directory to search for files in
- directory $datadir
-
- # enable tracing
- verbose 1
-
- # output format (direction overridden)
- output forward short york2.1
-
- # the comment file to filter
- comment hdr.file
-
- # context subnet
- # name
- context FTP JANET
- context FTP PSS
- context JTMP JANET
- context JTMP PSS
- #O context JTMP-FILES JANET
- #P context JTMP-FILES PSS
- #O context JTMP-REG JANET
- #P context JTMP-REG PSS
- context Mail JANET
- context Mail PSS
- #O context Mail-telex TELEX
- #O context Mail-x29 JANET
- #P context Mail-x29 PSS
- context ts29 JANET
- context Ts29 PSS
- context X29 JANET
- context X29 PSS
- #O context YBTS JANET
- #P context YBTS PSS
- #O context YBTS-NODE JANET
- #P context YBTS-NODE PSS
- !GROK!THIS!
- then
- : OK
- else
- echo " " Failed to create $outputfile.$$
- exit 1
- fi
- if cmp $outputfile $outputfile.$$ > /dev/null 2>& 1
- then
- rm -f $outputfile.$$
- echo " " $outputfile not affected
- elif mv $outputfile.$$ $outputfile
- then
- echo " " $outputfile updated
- else
- echo "+++ " $outputfile left in $outputfile.$$
- fi
-